# -*- encoding: utf-8 -*-
"""

PyCharm 窗序列
2024年10月22日19时19分
by wenyang

文件主要内容:


"""
import numpy as np
import matplotlib.pyplot as plt


def main():
    x = np.linspace(-10, 10, 21)
    y = np.zeros(21)
    N = 5
    y[10:10 + N] = 1
    plt.stem(x, y)
    plt.show()


if __name__ == "__main__":
    main()
